/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package afroschool.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author AUTRES
 */
@Entity
@Table(name = "noteeval")
@NamedQueries({@NamedQuery(name = "Noteeval.findByIdNote", query = "SELECT n FROM Noteeval n WHERE n.idNote = :idNote"), @NamedQuery(name = "Noteeval.findByCode", query = "SELECT n FROM Noteeval n WHERE n.code = :code"), @NamedQuery(name = "Noteeval.findByIdEvaluation", query = "SELECT n FROM Noteeval n WHERE n.idEvaluation = :idEvaluation"), @NamedQuery(name = "Noteeval.findByNote", query = "SELECT n FROM Noteeval n WHERE n.note = :note"), @NamedQuery(name = "Noteeval.findByAnonymat", query = "SELECT n FROM Noteeval n WHERE n.anonymat = :anonymat")})
public class Noteeval implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "idNote", nullable = false)
    private Integer idNote;
    @Column(name = "code")
    private Integer code;
    @Column(name = "idEvaluation")
    private Integer idEvaluation;
    @Column(name = "note")
    private Integer note;
    @Column(name = "anonymat")
    private Integer anonymat;

    public Noteeval() {
    }

    public Noteeval(Integer idNote) {
        this.idNote = idNote;
    }

    public Integer getIdNote() {
        return idNote;
    }

    public void setIdNote(Integer idNote) {
        this.idNote = idNote;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public Integer getIdEvaluation() {
        return idEvaluation;
    }

    public void setIdEvaluation(Integer idEvaluation) {
        this.idEvaluation = idEvaluation;
    }

    public Integer getNote() {
        return note;
    }

    public void setNote(Integer note) {
        this.note = note;
    }

    public Integer getAnonymat() {
        return anonymat;
    }

    public void setAnonymat(Integer anonymat) {
        this.anonymat = anonymat;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idNote != null ? idNote.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Noteeval)) {
            return false;
        }
        Noteeval other = (Noteeval) object;
        if ((this.idNote == null && other.idNote != null) || (this.idNote != null && !this.idNote.equals(other.idNote))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "afroschool.beans.Noteeval[idNote=" + idNote + "]";
    }

}
